<template>
    <div class="listItem">
        <div v-for="(item, idx) in data" :key="idx">{{ item.name }}</div>
    </div>

</template>
<script>
// import { title } from 'process';

export default {
    props: ['data']
}
</script>

<style lang="less">
.listItem {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;

    div {
        font-size: 14px;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 6px 14px;
        margin: 0 16px 16px 0;
        cursor: pointer;
    }
}
</style>